<template>
  <h1>我是app根组件</h1>
  <a1 @zidingyi="sayhello" msg="你好啊"><span>陈坤</span></a1>
</template>

<script>
import a1 from "./components/a1.vue";
export default {
  name: "App",
  setup(props, context) {
    // console.log(props, context);
    function sayhello(a) {
      alert(`收到了参数${a}`);
    }
    return { sayhello };
  },
  components: {
    a1,
  },
};
</script>

<style>
</style>
